package com.hnevc.io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo {

	public static void main(String[] args) throws IOException {
		String data = "Hello Every One!你好";
		FileOutputStream fos = new FileOutputStream("D:\\data.txt");
		fos.write(data.getBytes("utf-8"));
		fos.close();
	}

}
